<?php echo $this->render('header-metta-jumpsite.phtml'); ?>
<script type="text/javascript">
  var id = <?php echo $this->id; ?>;
  var webInfo = '<?php echo $this->webInfo; ?>'; /* Vince 4/4/08 */
</script>
<div class="link" style="background:url(<?php echo $this->webInfo.'images/big/wallpaper/'.$this->topWallpaper; ?>);margin-top: 0pt;background-position:top;background-repeat:repeat-x;">
<?php if (isset($this->jumpsite[0]['imageFavicon'])): ?>
	<div class="group_title"><br/><img src="<?php echo $this->webInfo; ?>images/icon/<?php echo $this->jumpsite[0]['imageFavicon']?>" style="vertical-align:middle" alt=""/><?php echo ucfirst($this->escape($this->jumpsite[0]['profname'])); ?></div>	
<?php else: ?>
	<div class="group_title"><br/><img src="<?php echo $this->webInfo; ?>images/icon/defaultIcon.png" style="vertical-align:middle" alt=""/><?php echo ucfirst($this->escape($this->jumpsite[0]['profname'])); ?></div>
<?php endif; ?>
<div id="right-link-header-area">
<span class="right_header">
<ul>
	<?php if(isset($this->user->first_name)): ?>
		<?php if (strlen($this->user->first_name) < 20): ?>
		<li>Welcome <?php echo ucwords($this->escape($this->user->first_name)); ?>!</li>
			<?php if($this->jumpsite[0]['owner_id'] == $this->user->id) : ?>
			<li><img src="<?php echo $this->webInfo; ?>images/interface/admin.png" style="vertical-align:middle" /><a href="javascript:void(0)" class="right_link" id="show-btn">Administration</a></li>
			<?php endif; ?>
		<li><a href="<?php echo $this->webInfo.'index/logout'; ?>" class="right_link" style="padding-right:10px" id="mb1"> <img src="<?php echo $this->webInfo; ?>images/interface/exit.png" style="vertical-align:middle" /> Sign Out</a></li>
		<?php else : ?>
		<li>Welcome <?php echo ucwords(substr_replace($this->escape($this->user->first_name), ' ...', 20)); ?>!</li>
			<?php if($this->jumpsite[0]['owner_id'] == $this->user->id) : ?>
			<li><img src="<?php echo $this->webInfo; ?>images/interface/admin.png" style="vertical-align:middle" /><a href="javascript:void(0)" class="right_link" id="show-btn">Administration</a></li>
			<?php endif; ?>
		<li><a href="<?php echo $this->webInfo.'index/logout'; ?>" class="right_link" style="padding-right:10px" id="mb1"> <img src="<?php echo $this->webInfo; ?>images/interface/exit.png" style="vertical-align:middle" /> Sign Out</a></li>
		<?php endif; ?>
	<?php else: ?>
		<li>Hello There!&nbsp<a href="<?php echo $this->webInfo; ?>Register/index/lastVisit/<?php echo $this->webInfo.$_SERVER['REQUEST_URI'];?>" class="smallLink1">Sign-up now!</a></li>
		<li>Already a jumper?&nbsp;<a href="javascript:void(0)" class="smallLink1" id="signin" name="signin" style="text-decoration:none;"><img src="<?php echo $this->webInfo; ?>images/interface/login.png" style="vertical-align:middle" alt="" /> Sign in</a></li>
	<?php endif; ?>
</ul>
</span>
</div><br />
<div id="littlelink" align="center">
<ul>
	<?php foreach ($this->links as $key => $val): ?>
		<li><a class="right_link2" href="<?php echo $this->webInfo.$this->escape($val['linksUrl']); ?>"><?php echo $this->escape($val['linkName']); ?></a></li>
	<?php endforeach; ?>
	<?php if(isset($this->user)): ?>
		<li><a class="right_link2" href="<?php echo $this->webInfo; ?>Jumpstart">My Jumpstart</a></li>
	<?php endif; ?>
		<li><a class="right_link2" href="javascript:void(0)">Search</a></li>
	<?php if ($this->isNotMember == true): ?>
		<li><a href="javascript:void(0)" class="right_link" style="padding-right:10px" id="mb1"> <img src="<?php echo $this->webInfo; ?>images/interface/exit.png" style="vertical-align:middle" /> JOIN THIS JUMPSITE</a></li>
	<?php endif; ?>
</ul>
</div>


<div id="tabsJ">
  <ul>
  	<?php foreach ($this->tabLinks as $key): ?>
  	<?php if(strcmp($_SERVER['REQUEST_URI'],'/jumpsites/view/id/'.$this->jumpsiteId.'/goto/'.ucwords($key->id))==0):?>
  		<li><strong><a href="<?php echo $this->webInfo.'jumpsites/view/id/'.$this->jumpsiteId.'/goto/'.ucwords($key->id); ?>" title="<?php echo $key->name; ?>"><span><?php echo ucwords($key->name); ?></span></a></strong></li>
  	<?php elseif((strcmp($_SERVER['REQUEST_URI'],'/jumpsites/view/id/'.$this->jumpsiteId)==0) && (strcmp($key->id,$this->	tabIsHome)==0)):?>
  		<li><strong><a href="<?php echo $this->webInfo.'jumpsites/view/id/'.$this->jumpsiteId.'/goto/'.ucwords($key->id); ?>" title="<?php echo $key->name; ?>"><span><?php echo ucwords($key->name); ?></span></a></strong></li>
  	<?php else: ?>
  		<li><a href="<?php echo $this->webInfo.'jumpsites/view/id/'.$this->jumpsiteId.'/goto/'.ucwords($key->id); ?>" title="<?php echo $key->name; ?>"><span><?php echo ucwords($key->name); ?></span></a></li>
  	<?php endif; ?>
  	<?php endforeach; ?>
	<!--<li><a href="http://google.com/" title="Google" rel="gb_page_center[700, 600]"><span>Google</span></a></li>-->
  </ul>
</div>
</div>

<div id="hello-win" class="x-hidden" style="z-index:3">
    <div class="x-window-header">Jumpsite Administration</div>  
</div>
<div style="z-index:-1;background:#000000 url(<?php echo $this->webInfo.'images/big/wallpaper/'.$this->topWallpaper; ?>);">
<script type="text/javascript" src="<?php echo $this->webInfo; ?>jscripts/portal/examples.js"></script>
<script type="text/javascript" src="<?php echo $this->webInfo; ?>jscripts/portal/<?php echo $this->jsLayout->js_file_for_content; ?>"></script>
</div>
<!-- EXAMPLES -->

</body>
</html>